package com.haixiaoke.saas.repository.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.saas.repository.core.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 订单合同对象 biz_order_contract
 *
 * @author zhiping
 * @date 2023-04-20
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderContract extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 合同已签订
     */
    public static final Integer CONTRACT_STATUS_YES = 1;
    /**
     * 合同待签订
     */
    public static final Integer CONTRACT_STATUS_NO = 2;

    /**
     * 合同id
     */
    private Long contractId;

    /**
     * 甲方id
     */
    private Long orgId;

    /**
     * 乙方id
     */
    private String userId;

    /**
     * 合同内容
     */
    private String content;

    /**
     * 合同模板内容
     */
    private String contentTemplate;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 签名图片
     */
    private String signImg;

    /**
     * 合同状态(1: 已经签订; 2:待签名)
     */
    private Integer status;

    /**
     * 合同生成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date generateTime;

    /**
     * 合同签订时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date signTime;

    /**
     * 订单入住时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date checkInTime;

    /**
     * 订单退房时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date checkOutTime;


}